GCC = gcc
CFLAGS = -g -Wall -Wshadow
OBJS = mystring.o main.o
HDRS = mystring.h
VAL = valgrind --tool=memcheck --leak-check=full
VAL += --verbose --log-file

mystring:$(OBJS) $(HDRS)
	$(GCC) $(CFLAGS) $(OBJS) -o $@
.c.o:
	$(GCC) $(CFLAGS) -c $*.c

clean:
	rm -f mystring $(OBJS) out_* log*

